<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .content {
            width: 400px;
            height: 400px;
            border: 1px solid blue;
            display: table;
            text-align: center;
        }
        
        img {
            display: table-cell;
            vertical-align: middle;
        }
    </style>
</head>

<body>
    <div class="content">
        <img src="1.jpg" alt="" width="200px" height="200px">
    </div>

</body>

</html>